PROCOMM PLUS 4.5 for Windows 
Easy Time/Date Conversion (4/29/98)


Should I use this script?
-------------------------

This script demonstrates how easy it can be to calculate 
the day and date of any time from 1970 up until early 
in the 22nd century. Aspect can easily calculate what day 
it will be in the in the future(or was in the past) by 
determining the number of seconds that have elapsed 
since 1970. The value returned can then be easily 
converted into a readable date and time for user 
applications.


How do I install TIMECALC.WAX?
----------------------------

Copy TIMECALC.WAS to your ASPECT directory and compile it.


How do I run TIMECALC.WAX?
------------------------

From the Action Bar:

1)  Click on the Script File drop down menu.
2)  Select TIMECALC.

From the Menu Bar:

1)  Click on Scripts.
2)  Click on Run.
3)  Select TIMECALC.WAX.
4)  Click on OK.

NOTE:  If TIMECALC.WAX does not appear in the Script 
       File drop down list, you might have a different 
       default ASPECT path.  To change the path, go to 
       Setup | Data | Data Options | Paths and change 
       the path to /Program Files/Procomm Pluis/ASPECT 
       directory.


Additional Information:
------------------------

There are 86,400 seconds in 24 hours. Using simple 
arithmetic based on this value, Aspect can determine what 
the day and date is. LTIMEMISC returns a value for the 
day of the week as an integer between 1 and 7. You can 
perform an IF/ELSE or a SWITCH/CASE on that value to 
determine if it is a weekend or a weekday. This is very 
useful for applications that only need to perform an
operation during a work week.